package com.quanxi.qxaimain.common.datasource.datasourceAOP.multiple;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @Author lyx
 * @create 2022/8/31 11:17
 */
public class MultipleDataSource extends  AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSource();
    }
}